Image Uploading (wodHttpDLX)

by Shakeeb Ahmed @, (6432 days ago)

Hi

I want to post an image data means I want to upload image to my profile using my desktop app. So i have to post image data to. How could I achieve this task.

locked

Re: Image Uploading

by wodDamir @, (6432 days ago) @ Shakeeb Ahmed

Hi Shakeeb,

Did you try out the samples which came with the component?

You said you want to upload it to your profile. I assume this is about some forum or similiar cause which has a Form that requires you to provide some data (and image).

In that case you can use the Request.FormUpload.AddFile method to send the file along with other FormUpload data. Just make sure you issue Post Method after you added everything to the request.

You should also check the sample 5. Upload file to the server located in VB -> Component folder.

Regards,
Damba

locked

Re: Image Uploading

by Shakeeb Ahmed @, (6417 days ago) @ wodDamir

I want to post some data with file uploading

I want post data stream as

[image]

and request Header stream as

Content-Type: multipart/form-data; boundary=---------------------------130732728322203
Content-Length: 56974

-----------------------------130732728322203
Content-Disposition: form-data; name= __VIEWSTATE


-----------------------------130732728322203
Content-Disposition: form-data; name= ImageToUpload ; filename= loaderio1.jpg
Content-Type: image/jpeg
-----------------------------130732728322203
Content-Disposition: form-data; name= Entity

EntityID=0;EntityType=User
-----------------------------130732728322203
Content-Disposition: form-data; name= UploadID

509178364
-----------------------------130732728322203
Content-Disposition: form-data; name= ViewImagesURL

http://xxxxxxx.xxxxxx.coxxxxm/index.cfm?fuseaction=xxxxx.xxxxx
-----------------------------130732728322203
Content-Disposition: form-data; name= albums

rdCurrentAlbum
-----------------------------130732728322203
Content-Disposition: form-data; name= AlbumDropdown

671415
-----------------------------130732728322203
Content-Disposition: form-data; name= txtNewAlbumName


-----------------------------130732728322203
Content-Disposition: form-data; name= ButtonUpload

Upload
-----------------------------130732728322203—
[img]http://[/img] [img]http://[/img] [url=http://]Name[/url] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img] [img]http://[/img]

locked

Re: Image Uploading

by Shakeeb Ahmed @, (6417 days ago) @ Shakeeb Ahmed

I want to post some data with file uploading

I want post data stream as

[image]

and request Header stream as

Content-Type: multipart/form-data; boundary=---------------------------130732728322203
Content-Length: 56974

-----------------------------130732728322203
Content-Disposition: form-data; name= __VIEWSTATE


-----------------------------130732728322203
Content-Disposition: form-data; name= ImageToUpload ; filename= loaderio1.jpg
Content-Type: image/jpeg
-----------------------------130732728322203
Content-Disposition: form-data; name= Entity

EntityID=0;EntityType=User
-----------------------------130732728322203
Content-Disposition: form-data; name= UploadID

509178364
-----------------------------130732728322203
Content-Disposition: form-data; name= ViewImagesURL

http://xxxxxxx.xxxxxx.coxxxxm/index.cfm?fuseaction=xxxxx.xxxxx
-----------------------------130732728322203
Content-Disposition: form-data; name= albums

rdCurrentAlbum
-----------------------------130732728322203
Content-Disposition: form-data; name= AlbumDropdown

671415
-----------------------------130732728322203
Content-Disposition: form-data; name= txtNewAlbumName


-----------------------------130732728322203
Content-Disposition: form-data; name= ButtonUpload

Upload
-----------------------------130732728322203—

locked

Re: Image Uploading

by wodDamir @, (6417 days ago) @ Shakeeb Ahmed

Shakeeb,

In order to Upload a File along with some data, you can use our FormUpload.Add and FormUpload.AddFile methods. You can also find a sample on how to use them in the samples directory.

Can you try it please?

When you use those methods, wodHttpDLX will automatically set Headers needed to be used in order to be able to do a successful Post.

Regards,
Damba

locked

Re: Image Uploading

by Shakeeb Ahmed @, (6416 days ago) @ wodDamir

I did this but it is useless not posting.
plz check the image and header data is edn and then recommend

How can i get the boundary separator from your function

Shakeeb,

In order to Upload a File along with some data, you can use our FormUpload.Add and FormUpload.AddFile methods. You can also find a sample on how to use them in the samples directory.

Can you try it please?

When you use those methods, wodHttpDLX will automatically set Headers needed to be used in order to be able to do a successful Post.

Regards,
Damba

locked

Re: Image Uploading

by wodDamir @, (6415 days ago) @ Shakeeb Ahmed

Shakeeb,

Can you contact us on techsupport@weonlydo.com and send us a sample application which we could run in order to duplicate the issue?

Also, please give us as much information on what you are trying to accomplish and where it is failing so we could be moer helpful.

Regards,
Damba

locked

Re: Image Uploading

by Shakeeb Ahmed @, (6414 days ago) @ wodDamir

I am developing an app for uploading images on MySpace(www.myspace.com) account.
Can you tell me how..

Shakeeb,

Can you contact us on techsupport@weonlydo.com and send us a sample application which we could run in order to duplicate the issue?

Also, please give us as much information on what you are trying to accomplish and where it is failing so we could be moer helpful.

Regards,
Damba

locked

Re: Image Uploading

by woddrazen @, (6414 days ago) @ Shakeeb Ahmed

Ahmed,


Can you please zip and send us your sample to techsupport@weonlydo.com and we will try to find out what went wrong.


Drazen

locked

Re: Image Uploading

by Shakeeb Ahmed @, (6412 days ago) @ woddrazen

I have mailed you the source code Its urgent plz.

Ahmed,


Can you please zip and send us your sample to techsupport@weonlydo.com and we will try to find out what went wrong.


Drazen

locked

Re: Image Uploading

by Shakeeb Ahmed @, (6409 days ago) @ Shakeeb Ahmed

Hi
there is no reply from your team. I am suffering too much plz.....

I have mailed you the source code Its urgent plz.

Ahmed,


Can you please zip and send us your sample to techsupport@weonlydo.com and we will try to find out what went wrong.


Drazen

locked

Re: Image Uploading

by Jasmine, (6409 days ago) @ Shakeeb Ahmed

Shakeeb,

I think we replied. We cannot solve your whole project. We can help with wodHttpDLX and can help with HTTP protocol, but cannot solve project instead of youthat involves several requests, parsing the result, etc.. This requires several days of coding - and this sounds like real job, not the techsupport anymore.

If you have exact question about wodHttpDLX misbehavior we will be happy to answer. But please don't ask us to make whole application for you.

Kind regards,
Kreso

locked