473,320 Members | 2,202 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

HTTP upload image file encoded with multipart/form-data

Hi

I'm using a third party software which captures image from a webcam and
saves it to local harddisk. It also comes with a function to send the image
file via HTTP encoded with multipart/form-data. To integrate this function
with ASP and PHP is no problem. I think it's also possible to binary read and
decode the files and fields posted, in c#. But I don't know the syntax and
the classes to use in c#. Is there any information on the Internet that you
can guide me to?

--
Regards Patsy
Nov 16 '05 #1
1 4293
Patsy wrote:
Hi

I'm using a third party software which captures image from a webcam
and saves it to local harddisk. It also comes with a function to send
the image file via HTTP encoded with multipart/form-data. To
integrate this function with ASP and PHP is no problem. I think it's
also possible to binary read and decode the files and fields posted,
in c#. But I don't know the syntax and the classes to use in c#. Is
there any information on the Internet that you can guide me to?


System.Net.WebClient.UploadFile() should perform a proper file upload
using multipart/form-data, but it is still broken in .NET 1.1 SP1 and
thus doesn't seem to work with PHP. This leaves you only the option to
use Sytem.Net.WebRequest.

Cheers,

--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ben | last post by:
Hi everybody! I have a multi-file upload form... Please looks at my code below. It's in an initial stage. I'm trying to display the values of each text box when I press "upload" but it doesn't...
1
by: Daniel | last post by:
I have looked everywhere on the web for an answer to this and the only thing I can find is converting the image format when the file is present on the local filesystem. What I want to do is use a...
3
by: Pitcairnia | last post by:
The basic purpose of the site is for authenticated users to post event listings, which often include photographs. The user is faced with a page where they can insert all of the information about...
4
by: wakun | last post by:
Hi there, I am using a POST method to upload a big file (20M), I have already set the max-upload-file = 30M in php.ini and have the hidden MAX_FILE_SIZE=30M in multipart form. However, it still...
4
by: yoram.ayalon | last post by:
Hi, I need to create a multipart request to UPS manifest upload electronic service. UPS wants the request to consist of a series of headers and bodies, and its not clear how can I use the...
1
by: krishan123456 | last post by:
i have tried to send email with attached doc file but when i receive the mail i find the attached file in encoded text instead of actuall attachment.the code that i used to send an email is given...
0
by: Event Horizon | last post by:
Hi, I'm trying to add an simple upload applet to shopping cart script. My new applet form sends all needed post fields ( quantity, product, etc... ) but the "file" post field is hardcoded in...
7
by: Defacta | last post by:
Hi, I have set my max upload file to 200M by modifiying the php.ini file: ; Maximum allowed size for uploaded files. upload_max_filesize = 200M The function: echo...
3
by: macca | last post by:
Hi people! I'm having a problem with a file upload script that I'm writing. It works with Firefox but not Internet explorer. When the form is submitted(to it's self) it check for a file upload...
12
by: GuangXiN | last post by:
I want the file upload element disappear, instead of it, I place a text box and a button with my own css defination. but it doesn't work on IE7. What should I do now? <form action="upload.php"...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.