ImageGear for C and C++ on Windows v19.0
IG_save_internet

This function saves the image referenced by HIGEAR handle in the Internet location.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_save_internet(
   const LPCHAR HostName,
   const LPCHAR URLPath,
   const LPCHAR UserName,
   const LPCHAR Password,
   const LONG nServerPort,
   DWORD dwService,
   DWORD dwHttpVerb,
   DWORD dwAccessType,
   const LPCHAR lpszProxyName,
   const LPCHAR lpszProxyBypass,
   DWORD dwFlags,
   HIGEAR hIGear,
   AT_LMODE lFormatType
);

Arguments:

Name Type Description
HostName const LPCHAR Set to the name of Internet host, for example "www.accusoft.com."
URLPath const LPCHAR Set to the URL path to the output file, such as "/images/image1.bmp". In general, this is a path to necessary file on the given host.
UserName const LPCHAR Set to the proper user name to logon.
Password const LPCHAR Give the proper password to logon.
nServerPort const LONG Set to the number of the Internet port. Use one of the settings from parameter 3 of the Win32 function InternetConnect.
dwService DWORD Set to one of the following values: INTERNET_SERVICE_FTP for FTP service, INTERNET_SERVICE_GOPHER for Gopher service, or INTERNET_SERVICE_HTTP for HTTP service.
dwHttpVerb DWORD Specifies the HTTP verb to use in the request. Possible values are either IG_HTTP_VERB_POST or IG_HTTP_VERB_PUT. This parameter is only used when dwService is INTERNET_SERVICE_HTTP.
dwAccessType DWORD Access type to be passed to the second parameter of the InternetOpen function. See description of InternetOpen function from Microsoft Win32 Internet Function Reference for details.
lpszProxyName const LPCHAR Proxy name for the third parameter of InternetOpen function. See description of InternetOpen function from Microsoft Win32 Internet Function Reference for details.
lpszProxyBypass const LPCHAR Bypass name for fourth parameter of InternetOpen function. See description of InternetOpen function from Microsoft Win32 Internet Function Reference for details.
dwFlags DWORD Flags for fifth parameter of InternetOpen function. See description of InternetOpen function from Microsoft Win32 Internet Function Reference for details.
hIGear HIGEAR Handle of the image to be saved.
lFormatType AT_LMODE Specifies the format to use for saving, and also the compression scheme if applicable. See enumIGSaveFormats.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Sample:

None

Remarks:

This function does essentially the same thing as IG_save_file, except that it also lets you pass user/password, Server Port, Transfer Services information, and additional proxy information.

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback