BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-02-2008, 01:06 PM   #1
jwhanes
Knows Where the Search Button Is
 
Join Date: Mar 2008
Model: 8800
PIN: N/A
Carrier: cingular
Posts: 16
Default HTTP image POST

Please Login to Remove!

I am attempting to send an image through a POST http connection.

The image is a BMP file. I convert the BMP into a byte [] and throw it into the OutputStream with the write method. I have successfully sent a couple images, but only when the images are extremely small. (Roughly 44x44 pixels).

However, when I increase the size of the file to just 45x45 pixels, it will time out on the flush() method.

The strange part is when I send the 44x44 size file it sends almost instantly, but increasing it to 45x45, it will time out. So I don't think the timeout is due to a large file size. Otherwise I'm sure as the file size increased, the transfer would progressively get slower and slower. But on all image sizes not exceeding 44x44 they transfer instantly.

Does anyone have any thoughts on this?

I've also tested this on and off a BES server, and ended with the same result.

Thank you in advance for the help!
Offline  
Old 06-02-2008, 04:25 PM   #2
baran_khan
Thumbs Must Hurt
 
baran_khan's Avatar
 
Join Date: Apr 2008
Model: 9500
PIN: N/A
Carrier: Airtel
Posts: 110
Default

what language is ur receiver written in???
__________________
Smart People ask for Help!!!
Offline  
Old 06-02-2008, 05:57 PM   #3
jwhanes
Knows Where the Search Button Is
 
Join Date: Mar 2008
Model: 8800
PIN: N/A
Carrier: cingular
Posts: 16
Default

Thanks for the reply.

Its a CGI written in C. Its been tested using Internet explorer and has successfully received files roughly 2-3 MB big.

I also have a servlet, but no luck with that one either.

I actually just did a retest on an actual device and I was able to send a fairly large BMP file.

But for some reason when using the simulator, it wont work.

Very strange.
Offline  
Closed 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


1 Pc Home Intel Xeon Silver Sclip 4110 Linux   - NEW picture

1 Pc Home Intel Xeon Silver Sclip 4110 Linux - NEW

$245.00



Super-Micro P4DC6+ Motherboard with 2 Xeon i processors with SCSI RAID picture

Super-Micro P4DC6+ Motherboard with 2 Xeon i processors with SCSI RAID

$200.00



Cisco MCS 7800 Server picture

Cisco MCS 7800 Server

$150.00



Xeon E5 E7 Processor Packaging for Tray LGA2011  52.5 x 45 mm - Lot of 2 6 12 30 picture

Xeon E5 E7 Processor Packaging for Tray LGA2011 52.5 x 45 mm - Lot of 2 6 12 30

$15.85



POSEIDON XEON D-1500 PRODRIVE TECH BOX picture

POSEIDON XEON D-1500 PRODRIVE TECH BOX

$500.00



Windows / Linux VPS (Virtual Dedicated Server) 48GB RAM + 1500GB HDD + 3 months picture

Windows / Linux VPS (Virtual Dedicated Server) 48GB RAM + 1500GB HDD + 3 months

$329.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.