Skip to content

Instantly share code, notes, and snippets.

<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
var http = require('http')
var fs = require('fs')
require('bufferjs');
var spawn = require('child_process').spawn
var PicFile ='c:\\ocr\\ocr.bin'
var ResFilePrefix = 'c:\\ocr\\output'
var ResFile = ResFilePrefix + ".txt"
Object obj = getIntent().getExtras();
Uri imageUri = (Uri) ((Bundle) obj).get(Intent.EXTRA_STREAM);
InputStream in = getContentResolver().openInputStream(imageUri);
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="uuid-91102774-2ee8-4344-bbb7-77ea93c8f772-1">
<u:Created>2012-06-07T11:15:16.163Z</u:Created>
<u:Expires>2012-06-07T11:20:16.163Z</u:Expires>
</u:Timestamp>
<o:BinarySecurityToken u:Id="uuid-4b4d1ed9-b08b-4ba9-ba67-d755cae5d838-2" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MIIBxDCCAW6gAwIBAgIQYpjr4FOk3IFNSd3lJj6ItzANBgkqhkiG9w0BAQQFADAWMRQwEgYDVQQDEwtSb290IEFnZW5jeTAeFw0wMzA3MDgxODQ4MTBaFw0zOTEyMzEyMzU5NTlaMB8xHTAbBgNVBAMTFFdTRTJRdWlja1N0YXJ0U2VydmVyMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLkqglArInukR
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="uuid-91102774-2ee8-4344-bbb7-77ea93c8f772-1">
<u:Created>2012-06-07T11:15:16.163Z</u:Created>
<u:Expires>2012-06-07T11:20:16.163Z</u:Expires>
</u:Timestamp>
<o:BinarySecurityToken u:Id="uuid-4b4d1ed9-b08b-4ba9-ba67-d755cae5d838-2" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">MIIBxDCCAW6gAwIBAgIQYpjr4FOk3IFNSd3lJj6ItzANBgkqhkiG9w0BAQQFADAWMRQwEgYDVQQDEwtSb290IEFnZW5jeTAeFw0wMzA3MDgxODQ4MTBaFw0zOTEyMzEyMzU5NTlaMB8xHTAbBgNVBAMTFFdTRTJRdWlja1N0YXJ0U2VydmVyMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLkqglArInukR
<customBinding>
<binding name="NewBinding0">
<textMessageEncoding messageVersion="Soap11" />
<security authenticationMode="MutualCertificate" messageSecurityVersion="WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10">
</security>
<httpTransport />
</binding>
</customBinding>
<behavior name="NewBehavior0">
<clientCredentials>
<clientCertificate findValue="CN=WSE2QuickStartServer" storeLocation="LocalMachine" />
</clientCredentials>
</behavior>
<endpoint ... behaviorConfiguration="NewBehavior0" ... />
<clientCredentials>
<clientCertificate findValue="CN=WSE2QuickStartServer" storeLocation="LocalMachine" />
<serviceCertificate>
<defaultCertificate findValue="CN=WSE2QuickStartServer" storeLocation="LocalMachine" />
</serviceCertificate>
</clientCredentials>
<security ... enableUnsecuredResponse="true" ... />