Jump to content

gsm

Members
  • Posts

    6
  • Joined

  • Last visited

gsm's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. solved.............................
  2. plese any one help me i working hard to fix ............but steel have same error and 2 days gon......
  3. what about this code? private string ConvertImage(Bitmap sBit) { MemoryStream imageStream = new MemoryStream(); //sBit.Save(imageStream, ImageFormat.Jpeg); sBit.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png); return Convert.ToBase64String(imageStream.ToArray()); } private void button1_Click(object sender, EventArgs e) { Bitmap sBit = new Bitmap(@"C:\abc.png"); string imageString = ConvertImage(sBit); // StreamWriter sw = new StreamWriter(@"C:\waleedelkot.text", false); StreamWriter sw = new StreamWriter(@"C:\wal.doc", false); sw.Write(imageString); sw.Close(); MessageBox.Show("success"); }
  4. there is any OCR readers built to be run within PHP ?
  5. Any idea where my code is going wrong...I am trying to login with the curl function ...but stuk on errmsg=Wrong Username and Password ! <?php $username = "8878513825"; $password = "650334"; $tomob = $_REQUEST['to']; $cookie = tempnam("/coki", "CURLCOOKIE"); $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,"http://site2sms.com/login.asp"); curl_setopt($ch,CURLOPT_COOKIEJAR,$cookie); curl_setopt($ch,CURLOPT_RETURNTRANSFER, true); curl_setopt($ch,CURLOPT_REFERER,"http://site2sms.com/login.asp"); $one=curl_exec($ch); print $one; $post_data = "userid=$username&password=$password&Submit=Sign+in"; $url = "http://www.site2sms.com/auth.asp"; $cookie = tempnam("/coki", "CURLCOOKIE"); $ch = curl_init(); curl_setopt( $ch, CURLOPT_USERAGENT,"User-Agent: Mozilla/7.0 (Windows NT 6.1; rv:10.0) Gecko/20100101 Firefox/9.0" ); curl_setopt( $ch, CURLOPT_URL, $url ); curl_setopt ($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","Accept: */*")); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt( $ch, CURLOPT_COOKIEJAR, $cookie ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt($ch,CURLOPT_REFERER,"http://www.site2sms.com/login.asp"); $ct = curl_exec( $ch ); print $ct; ?> .
  6. sorry PNG to text decode possible? 6.php
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.