Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have to Send Image From Pc(Windows Apllication) to Mobile using of WinApp.Net But whane i Sending Image That time its not give any error and also its not recive in cell . any buddy have idea how to solve it my code is following




private void MediaPick()
{
OpenFileDialog dial = new OpenFileDialog();
if (dial.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
string filename = dial.FileName;
if (File.Exists(filename))
{
filename = this.copyFileLocal(filename);

byte[] img = File.ReadAllBytes(filename);

WappSocket.Instance.SendMessageImage(this.target, img, WhatsAppApi.ApiBase.ImageType.JPEG);


this.ClearTextbox();

}
}
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900