1

I am not getting how to send image to any number using WhatsApiNet I tried writing like D:/img.jpg in COnsole window but its sending the path as a text This Error I am getting while using this code

case "/image":
byte[] imgData = File.ReadAllBytes(@"d:\My Creations\DSC_0423 copy.jpg");
wa.SendMessageImage(tmpUser.GetFullJid(), imgData, ApiBase.ImageType.JPEG);
break;!
Kirtesh
  • 29
  • 1
  • 10
  • When I try this code I only get the following exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'd:\My Creations\DSC_0423 copy.jpg'. This is because the image isn't there. When using an existing image (or file), it works fine. Can you be more specific about the error you get? – Arno Peters Aug 28 '14 at 06:55
  • Ok i got it and i solved it – Kirtesh Aug 28 '14 at 07:31
  • Problem is to turn off receiver as soon as i comment the receiver it starts working – Kirtesh Aug 28 '14 at 07:33

0 Answers0