Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compiling Dependancies Pin
Mazdak8-Feb-04 9:56
Mazdak8-Feb-04 9:56 
GeneralRe: Compiling Dependancies Pin
ZigmaT8-Feb-04 10:37
ZigmaT8-Feb-04 10:37 
GeneralRe: Compiling Dependancies Pin
Heath Stewart8-Feb-04 18:22
protectorHeath Stewart8-Feb-04 18:22 
GeneralRe: Compiling Dependancies Pin
ZigmaT9-Feb-04 8:30
ZigmaT9-Feb-04 8:30 
GeneralGetDisplayName - Valid, but no return value Pin
Tristan Rhodes8-Feb-04 9:14
Tristan Rhodes8-Feb-04 9:14 
GeneralRe: GetDisplayName - Valid, but no return value Pin
Nick Parker8-Feb-04 10:28
protectorNick Parker8-Feb-04 10:28 
GeneralRe: GetDisplayName - Valid, but no return value Pin
Tristan Rhodes8-Feb-04 12:46
Tristan Rhodes8-Feb-04 12:46 
GeneralSending an Image over HTTP. Pin
Jon Newman8-Feb-04 9:03
Jon Newman8-Feb-04 9:03 
Here's a puzzle. I intend to send an image (jpeg) to a PHP-Driven website via HTTP POST, using a C# app compiled for the .NET Compact Framework.
So far Its all working apart from one thing, when sending the file, it is created on the server, but is corrupt. I'm positive this is down to the image not being sent in the correct format, but what format is it supposed to be sent?
The method of sending is using a WebRequest object and its RequestStream.

Method = "POST";
ContentType = "multipart/form-data; boundary=AaB03x";

The following HTTP post is sent through the stream.
--AaB03x
Content-Disposition: form-data; name="title"
Content-Type: text/plain; charset=utf-8

Title

--AaB03x
Content-Disposition: attachment; name="file" filename="nexi0001.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: binary

contents of file...
--AaB03x--


Now alls I need to do is send the image data with this. Yet I've no idea in what format to send it and thus how to prepare this format on the CF.
Ideas?


Jonathan 'nonny' Newman
blog.nonny.com [^]
GeneralRe: Sending an Image over HTTP. Pin
Mazdak8-Feb-04 9:09
Mazdak8-Feb-04 9:09 
GeneralRe: Sending an Image over HTTP. Pin
Jon Newman8-Feb-04 9:32
Jon Newman8-Feb-04 9:32 
GeneralRe: Sending an Image over HTTP. Pin
Mazdak8-Feb-04 9:40
Mazdak8-Feb-04 9:40 
GeneralRe: Sending an Image over HTTP. Pin
Not Active9-Feb-04 3:12
mentorNot Active9-Feb-04 3:12 
GeneralAutoscrolling Text Boxes Pin
ZigmaT8-Feb-04 9:00
ZigmaT8-Feb-04 9:00 
QuestionGrid Control - How do I add single rows?? Pin
IrishSonic8-Feb-04 8:49
IrishSonic8-Feb-04 8:49 
AnswerRe: Grid Control - How do I add single rows?? Pin
Mazdak8-Feb-04 9:01
Mazdak8-Feb-04 9:01 
GeneralTroubles with Owner-draw TextBox... Pin
Mike0108-Feb-04 7:55
Mike0108-Feb-04 7:55 
GeneralRe: Troubles with Owner-draw TextBox... Pin
leppie8-Feb-04 8:28
leppie8-Feb-04 8:28 
GeneralRe: Troubles with Owner-draw TextBox... Pin
Mike0108-Feb-04 9:29
Mike0108-Feb-04 9:29 
GeneralRe: Troubles with Owner-draw TextBox... Pin
Heath Stewart8-Feb-04 18:13
protectorHeath Stewart8-Feb-04 18:13 
GeneralRe: Troubles with Owner-draw TextBox... Pin
Mike0109-Feb-04 4:43
Mike0109-Feb-04 4:43 
GeneralAdapt forms to screen resolution Pin
haezeban8-Feb-04 7:55
haezeban8-Feb-04 7:55 
GeneralRe: Adapt forms to screen resolution Pin
Mazdak8-Feb-04 8:24
Mazdak8-Feb-04 8:24 
GeneralRe: Adapt forms to screen resolution Pin
Heath Stewart8-Feb-04 18:07
protectorHeath Stewart8-Feb-04 18:07 
Questionminimize to tray? Pin
visiontec8-Feb-04 7:43
visiontec8-Feb-04 7:43 
AnswerRe: minimize to tray? Pin
OmegaSupreme8-Feb-04 10:18
OmegaSupreme8-Feb-04 10:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.