User manual AXIS APPINT

DON'T FORGET : ALWAYS READ THE USER GUIDE BEFORE BUYING !!!

If this document matches the user guide, instructions manual or user manual, feature sets, schematics you are looking for, download it now. Diplodocs provides you a fast and easy access to the user manual AXIS APPINT. We hope that this AXIS APPINT user guide will be useful to you.


AXIS APPINT : Download the complete user guide (38 Ko)

Manual abstract: user guide AXIS APPINT

Detailed instructions for use are in the User's Guide.

[. . . ] Follow the steps below to scan an image to your application using your AXIS 700. Send a HTTP request with, at least, the following headers: POST /user/scan/scan. shtml HTTP/1. 0 Content-type: application/x-www-form-urlencoded Content-length: 40 page=scan&profileName=Color+low&scanNow= 3 The last row contains the parameters to your AXIS 700. page=scan profileName=Color+low scanNow - necessary for your AXIS 700 to process your request. No value is needed. If you replace scanNow with reserve then the scanner is reserved, but the user is required to push the 7IRH button on the front panel of your AXIS 700. [. . . ] Using this object you can now retrieve an HTTP connection: CHttpConnection* anHttpConnection = aSession. GetHttpConnection("somescanserver", (INTERNET_PORT) 80, NULL, NULL); 3. By default, redirect responses are handled automatically: CHttpFile* anHttpFile = anHttpConnection->OpenRequest(0, "/user/scan/scan. shtml"); The first parameter defines that a POST request shall be opened, the second is the request target. Create a query string containing the parameters you want to send: CString aQueryString = "\n\npage=scan&profileName=Color+low&scanNow="; 5. Add an HTTP header which informs the HTTP server that the request contains encoded data: anHttpFile->AddRequestHeaders( "Content-type: application/x-www-form-urlencoded"); 5 6. Send the request: anHttpFile->SendRequest(NULL, 0, (void*)(const char*)aQueryString, aQueryString. GetLength()); The method will not return ?????Its value can be retrieved by the following call: anHttpFile->QueryInfo(HTTP_QUERY_CONTENT_TYPE, aContType); If all went well, aContType will have the value "image/jpeg" (if JPEG is the chosen format. Finally we are ready to receive the data: UINT bytesRead = anHttpFile->Read(buffer, MAXBUF - 1); while( nBytesRead > 0) { //Save data somewhere . //Read next chunk nBytesRead = anHttpFile->Read(buffer, MAXBUF -1); } Scanning Using the WinInet API If you do not want to use MFC to create an Internet application you can use the WinInet API instead. It provides basically the same functionality as MFC does and the functions in the WinInet API are very similar to those in MFC. Call InternetOpen to enable an Internet connection: HINTERNET anInetHandle = InternetOpen("ScanSDK", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0); 6 2. Create an HTTP handle by calling the InternetConnect function with the necessary parameters: HINTERNET anHTTPHandle = InternetConnect(anInetHandle, "171. 16. 1. 185", INTERNET_DEFAULT_HTTP_PORT, "root", "pass", INTERNET_SERVICE_HTTP, 0, 0); 3. The second parameter indicates that it is a 4378 request and the third indicates that the target is the '/user/scan/scan. shtml' page. By default, redirect responses are handled automatically: HINTERNET anHttpRequest = HttpOpenRequest(anHTTPHandle, "POST", "/user/scan/scan. shtml", NULL, NULL, NULL, 0, 0); 4. Add an HTTP header which informs the HTTP server that the request contains encoded data: char aReqStr[] = "Content-type: application/x-www-form-urlencoded"; HttpAddRequestHeaders(anHttpRequest, aReqStr, strlen(aReqStr), 0) 5. Create a query string containing the parameters you want to send and send the request: char aQeryStr[] = "\n\npage=scan&profileName=Color+low&scanNow="; HttpSendRequest(anHttpRequest, 0, 0, aQeryStr, strlen(aQeryStr)) 7 6. Its value can be retrieved by the following call: HttpQueryInfo(anHttpRequest, 0, &aBuffer, &aBufferSize, HTTP_QUERY_CONTENT_TYPE); The third parameter is the address to a buffer that receives the information, and the fourth is the address to a variable containing the buffer's length. After the call it will contain the size of the information written to the buffer. If all went well, aContType will have the value "image/jpeg" (if JPEG was the chosen format (see table above). [. . . ] Thus when your application processes the information file the image file itself is guaranteed to be there already. )\EQTPI A document distributing system may check the file name to see whom the image is targeted for. The file name may then be on the form name_lastNameXXX. tif, where XXX is the sequence number optionally appended by your AXIS 700. )\EQTPI A fax server application can use the image name to obtain the fax number, and the file format to decide how to convert the document to fax data. [. . . ]

DISCLAIMER TO DOWNLOAD THE USER GUIDE AXIS APPINT




Click on "Download the user Manual" at the end of this Contract if you accept its terms, the downloading of the manual AXIS APPINT will begin.

 

Copyright © 2015 - manualRetreiver - All Rights Reserved.
Designated trademarks and brands are the property of their respective owners.