473,657 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to upload an Image file to a webserver using C for CGI scripting.?

9 New Member
Hi All,

I would like to upload an image file from my web page to the server using C(CGI scripting). Actually I am able to upload a text file using gcgi library but not image file.

Please, if any one knows regarding this or has the source code for the same, please help me out.

Any information on this topic will be appreciated.

Thanks And Regards,
Prakhar
Jan 23 '07 #1
2 3186
Chandan Ahuja
3 New Member
Hi ,
Please go to the link
http://www.codeproject .com/asp/upload.asp?df=1 00&forumid=4203 &exp=0&select=8 03319

From here read the article and download the ISAPI code , this will solve your problem .

I have myself used it in my CGI based application and it works perfectly fine .

Please let me know if you face any problem in incorporating this code in your application.

Thanks and Best Regards ,
Chandan
Jan 24 '07 #2
prakharv
9 New Member
Thanks a Lot Chandan, I will check it out and let u know.

Regards
Prakhar
Jan 29 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
6264
by: Martin | last post by:
Hi, I search for free script to enable function UPLOAD Images, Files to Webserver, and save in a directory. I have tried a free script, but it doesn't work. (http://www.freeaspupload.net), when I try the example of this page it does, but with my pages it does not. Thanks Martin
1
4324
by: Patsy | last post by:
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...
0
986
by: Jitendra Sanghani | last post by:
Respected Sir/Madam I am developing a Webdav Client Application and I had completed Methods like GET, MKCOL, PROPFIND. PROPPATCH, SEARCH etc. but the main problem where I find difficulties is in PUT method. I want to copy/Upload a file from my local machine to web-server. I had implemented it with PUT method in which I call SEND(chBuffer) method with
3
2006
by: wingleader | last post by:
Hi! Can someone help? I need to store image files in mysql database. Can you help with advice, how can it be done? I need a possibility to upload images, and that late it could be read as an image.
0
1993
by: aris1234 | last post by:
hello.. How to upload image file in page update ..?? i have logic like this : if user upload new image then old image must delete and update DB used new name if user not upload new image then old image no delete. code form like this (i dontknow this code right or wrong, please correction if wrong) :
2
2167
by: rinkudhimar | last post by:
I want to write using fwrite and upload the file without using File Field or Browse option. Actually I want to upload static file after writing it useing fwrite and as soon as it gets uploaded it should be savedt o the database.I want code for this: 1) Write a file 2) Upload the same file(static one) 3) Save it to Database
1
1102
by: ankarao11 | last post by:
Hello, i have a data file, setup.xml. In this file i would like to modify a parameter value called port number (from port number= 1200, to port number=1300) by using scripting (vb, java, cscripting, php, any). how do i change it? any help will be appreciated and thanks in advance
1
1778
by: zanzo | last post by:
I am new to asp, and i need to upload an image so could somebody help me??
3
4412
by: premprakashbhati | last post by:
hi, good evening.. i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button() here is the code ...its work fine when iam using a normal web page... but can't in content page.... Code in Master Page <%@ Master Language="C#" AutoEventWireup="true" CodeFile="submaster.master.cs" Inherits="submaster" %> <%@ Register Assembly="AjaxControlToolkit"...
2
4429
by: sidhx | last post by:
how can i let image overwriting when uploading? and if uploading an image say "logo.jpg" and if a file already existing say "logo.png" then, how can i replace the file logo.png to logo.jpg(which has same name but different extension)? Ex: I want replace logo.jpg with logo.png or any image extension file. In my code while uploading the image i rename the upload image name to "logo" and add extension it had been provided.
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.