Join 200,000+ other SprintUsers for free at the #1 online community for Sprint cell phone customers! Win cool prizes in our weekly contests. Talk about the newest phones or post your question in our forums! Become a premium member and get unlimited Focus Uploads to your Sprint phone.

All visitors must register before they can post questions, contact other members or search our database of over 127,000 threads and 1.7 million posts. So what are you waiting for? Register for free today!


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 06-19-2006, 02:56 PM   #1
sbendarag
Two Cans & String User
 
sbendarag's Avatar
 
Join Date: Jun 19, '06
Location: MN
Posts: 8
Phone: A900
Thanks: 0
Thanked 0 Times in 0 Posts
SU$: 26
GCD files

I have created a GCD file and png file accroding to specificaitons and have Set Cache-Control: no-transform on the websites HTTP header, The webserver is IIS. But the phones are failing to download files with 904 error. Has someone faced this issue?
Any help is greatly appreciated.

Thanks,
Sunil
sbendarag is offline   Reply With Quote
Old 06-19-2006, 03:49 PM   #2
laursifer
Stubborn, Irish Gal
 
laursifer's Avatar
 
Join Date: Feb 11, '05
Location: Baltimo'
Posts: 9,044
Phone: Palm Centro
Trades: 4
Thanks: 2
Thanked 7 Times in 6 Posts
SU$: 15,412
Here's an example of a GCD file for an image.

Code:
Content-Type: image/jpeg
Content-Name: nin | atlantic city 02
Content-Version: 1.0
Content-Vendor: laursifer.com
Content-URL: http://dontyouwish/acity_02.jpg
Content-Size: 32292
Basically what that 904 error means is the "Content-Size" line does not match the size of the file you're downloading. You need to grab that size in bytes. When you right-click on an image and select Properties you have Size and Size on Disk. You need to use the 'Size' in bytes.
laursifer is offline   Reply With Quote
Old 06-19-2006, 03:57 PM   #3
sbendarag
Two Cans & String User
 
sbendarag's Avatar
 
Join Date: Jun 19, '06
Location: MN
Posts: 8
Phone: A900
Thanks: 0
Thanked 0 Times in 0 Posts
SU$: 26
This is how my GCD file looks

Content-Type: image/png
Content-Name: MarisaMill29524
Content-Version: 1.0
Content-Vendor: AGInteractive
Content-URL: http://sitetodownload/MarisaMil.png
Content-Size: 115129

I am settingthe file size to be the one shown next to Size on the file properties in bytes. I am also setting Cache-Control to no=transform. but I am still getting the 904 error.

Thanks,

Sunil
sbendarag is offline   Reply With Quote
Old 06-19-2006, 05:31 PM   #4
laursifer
Stubborn, Irish Gal
 
laursifer's Avatar
 
Join Date: Feb 11, '05
Location: Baltimo'
Posts: 9,044
Phone: Palm Centro
Trades: 4
Thanks: 2
Thanked 7 Times in 6 Posts
SU$: 15,412
Have you tried writing it in WML and saving the page as a php file? That way, you don't have to mess with all that header crap. Also, for kicks, try saving the file as a JPEG, modifying your GCD as needed, and see if that solves your problem. It may be that, for some odd reason, your IIS server doesn't have the PNG MIME type set. In which case, you'd just need to add that and you should be good to go.

However, none of that really explains a 904 error, because 904 is pretty much directly related to the size of your file and the size you have in the GCD.
laursifer is offline   Reply With Quote
Old 06-20-2006, 08:51 AM   #5
sbendarag
Two Cans & String User
 
sbendarag's Avatar
 
Join Date: Jun 19, '06
Location: MN
Posts: 8
Phone: A900
Thanks: 0
Thanked 0 Times in 0 Posts
SU$: 26
I had tried converting the file to JPEG that didnt work, but when I tried GIF it worked on some of the phones. I checked the IIS for PNG mime type. it seems to be there.

I am using asp.net for this site. Could you explain a little more on how we can write to wml and save as php?

Thanks for your help.
sbendarag is offline   Reply With Quote
Old 06-20-2006, 09:29 AM   #6
laursifer
Stubborn, Irish Gal
 
laursifer's Avatar
 
Join Date: Feb 11, '05
Location: Baltimo'
Posts: 9,044
Phone: Palm Centro
Trades: 4
Thanks: 2
Thanked 7 Times in 6 Posts
SU$: 15,412
It's actually pretty effortless.

Code:
<wml>
 <card id="HOME" title="176x220">
  <p>
  </p>
  <p>
   <b>NIN</b>
   <br/>
   nin_albuquerque 01 [<a href="http://blahblahblah/albuquerque_01.jpg">P</a>] [<a href="http://blahblahblah/albuquerque_01.gcd">D</a>]
   <br/>
   <br/>
  </p>
 </card>
</wml>

That's just a really basic example. If you look at that page live, it appears with the image title (nin_albuquerque 01) with a P and a D beside it. The P link takes you to a preview of the image and the D link downloads it.

I just write code in Notepad, so all I do to save as PHP is File, Save As and use something like "screensavers.php" as my filename.

For more comprehensive information on writing WML, check out this site:
http://www.w3schools.com/wap/default.asp
laursifer is offline   Reply With Quote
Old 06-20-2006, 11:01 AM   #7
sbendarag
Two Cans & String User
 
sbendarag's Avatar
 
Join Date: Jun 19, '06
Location: MN
Posts: 8
Phone: A900
Thanks: 0
Thanked 0 Times in 0 Posts
SU$: 26
I tried the wml way with the link to the GCD file. but I am having the same issue. The phone starts the download process and it suddenly stops with 904 error. Could this be an IIS issue? may be it is not sending the right header. Even though I am setting it? or could this be a sprint issue..

Thanks for your help
sbendarag is offline   Reply With Quote
Old 06-20-2006, 11:12 AM   #8
laursifer
Stubborn, Irish Gal
 
laursifer's Avatar
 
Join Date: Feb 11, '05
Location: Baltimo'
Posts: 9,044
Phone: Palm Centro
Trades: 4
Thanks: 2
Thanked 7 Times in 6 Posts
SU$: 15,412
See, I've got sites on both IIS and Apache, and both of my sites run just fine. I don't do ANYTHING with headers, because that's just bad news. It's just weird that it's sending you a 904 error, because that's a problem it's getting from your GCD regarding file size. That's all a 904 ever means, at least in our experience here on SU. 904 is "content size mis-match."
laursifer is offline   Reply With Quote
Old 06-20-2006, 11:25 AM   #9
sbendarag
Two Cans & String User
 
sbendarag's Avatar
 
Join Date: Jun 19, '06
Location: MN
Posts: 8
Phone: A900
Thanks: 0
Thanked 0 Times in 0 Posts
SU$: 26
We were having this 904 error before and then I fouind this link http://forum.rumkin.com/index.php?ac...um=2&topic=275 which talks about the same issue and one of the posts says.

"Sprint changed their gateway to a new package due to the EVDO rollout + nextel!

All that you have to do is specify:
Cache-Control: no-transform
"

This had fixed our problems till an automatic windows update was applied to our server.

Not sure why this would happen.....
sbendarag is offline   Reply With Quote
Old 06-20-2006, 11:33 AM   #10
laursifer
Stubborn, Irish Gal
 
laursifer's Avatar
 
Join Date: Feb 11, '05
Location: Baltimo'
Posts: 9,044
Phone: Palm Centro
Trades: 4
Thanks: 2
Thanked 7 Times in 6 Posts
SU$: 15,412
Yeesh... yeah, that change was from a while ago, and it really only seemed to effect uploaders, not WAP pages. So I don't think it has anything at all to do with that but I could be wrong. Sprint's caching is insane anyway.

We don't do automatic Windows Updates to our servers for that exact reason though. Always screws up stuff. Let me look into it some more and see what I can find. Can you get me any information on that auto-update?

We WILL figure this out.

Last edited by laursifer; 06-20-2006 at 11:35 AM.
laursifer is offline   Reply With Quote
Old 06-20-2006, 11:43 AM   #11
sbendarag
Two Cans & String User
 
sbendarag's Avatar
 
Join Date: Jun 19, '06
Location: MN
Posts: 8
Phone: A900
Thanks: 0
Thanked 0 Times in 0 Posts
SU$: 26
These were the updates that were installed..

Windows Server 2003 Windows Malicious Software Removal Tool - June 2006 (KB890830) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Security Update for Windows Server 2003 (KB918439) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Cumulative Security Update for Internet Explorer for Windows Server 2003 (KB916281) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Security Update for Windows Server 2003 (KB917953) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Security Update for Windows Server 2003 (KB914389) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Security Update for Windows Server 2003 (KB911280) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Security Update for Windows Server 2003 (KB917344) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Security Update for Windows Server 2003 (KB917734) Wednesday, June 14, 2006 Automatic Updates

Thanks
sbendarag is offline   Reply With Quote
Old 06-20-2006, 11:48 AM   #12
sbendarag
Two Cans & String User
 
sbendarag's Avatar
 
Join Date: Jun 19, '06
Location: MN
Posts: 8
Phone: A900
Thanks: 0
Thanked 0 Times in 0 Posts
SU$: 26
From our site we allow sprint users to download content using GCD files, it is not a WAP site. We have 3 environments Dev, Stage and Live. If the content link from the GCD file is to a file on the Live server it works fine, but if the link is to file on the Dev box, it doesnt work.....

Thanks for your help ...
sbendarag is offline   Reply With Quote
Old 06-20-2006, 02:28 PM   #13
laursifer
Stubborn, Irish Gal
 
laursifer's Avatar
 
Join Date: Feb 11, '05
Location: Baltimo'
Posts: 9,044
Phone: Palm Centro
Trades: 4
Thanks: 2
Thanked 7 Times in 6 Posts
SU$: 15,412
Hmmm... is there any way for you to view the data packets being sent on that dev server? From the sounds of it, it's a security issue (as if the server is blocking it mid-transmission, which is odd). If you could view those data packets, you could probably find where it's getting hung up and spitting that error back at you. Dev servers are tricky little beasts, though. Is there a reason you're wanting to keep it on a dev server?
laursifer is offline   Reply With Quote
Old 06-20-2006, 02:35 PM   #14
sbendarag
Two Cans & String User
 
sbendarag's Avatar
 
Join Date: Jun 19, '06
Location: MN
Posts: 8
Phone: A900
Thanks: 0
Thanked 0 Times in 0 Posts
SU$: 26
I am not sure of how to check the data packets going out from the server.. Is there any software that will help me do that? The reason we have these environments is that we develop our applications on Dev and then after completion of development we move it stage where it gets tested and finally after testing is done the changes are moved to live boxes from which users can start using the new changes.
sbendarag is offline   Reply With Quote
Old 06-20-2006, 02:45 PM   #15
laursifer
Stubborn, Irish Gal
 
laursifer's Avatar
 
Join Date: Feb 11, '05
Location: Baltimo'
Posts: 9,044
Phone: Palm Centro
Trades: 4
Thanks: 2
Thanked 7 Times in 6 Posts
SU$: 15,412
Yeah, I understand that... it's just that it seems to be the dev server that's the problem. I understand wanting to get it fixed so you can continue to test it on the dev server, but for a project this small I would just move ahead to your production or live server from here, since you say it works on that. I think it's more trouble than it's worth to figure out what's FUBAR-ing things on your dev server. That's just me. I am sorry we couldn't nail this one on the head, but it's a pretty unique problem and I think the only way you're going to solve it is to REALLY get your hands inside that dev server (which I've done before, and it sucks).

I don't know of programs or anything to let you see all the data transmissions... I have a programmer who works on the dev server I work on, and he gets me all that junk with his smart programmy brain. Hard part is sifting through it.

Best of luck to you, and I'm sorry again I wasn't much help
laursifer is offline   Reply With Quote
Go Back SprintUsers.com > Sprint Enhanced Services »Multimedia Mayhem » GCD files

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
audiovox 8912 ringtones flsurfer311 Tips & Tricks 3 05-24-2006 05:47 PM
Samsung A800 - Playing Media files & mp3 files ? Hoshtaylor Multimedia Mayhem 4 11-18-2005 11:00 AM
GCD file needed? madmix Multimedia Mayhem 1 09-22-2005 07:52 AM
Error 91 on GCD creator PBParadox Multimedia Mayhem 2 04-28-2005 11:43 AM
Question about making gcd files newone757 Multimedia Mayhem 1 03-17-2005 12:42 AM


All times are GMT -6. The time now is 05:02 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
- SprintUsers.com is not affiliated with or endorsed by Sprint PCS -