to the WXSceneSession session or the WXSceneTimeline in the circle of friends. Sent to the session by default. Req. scene = shareType; wxApi. sendReq (req);}/** share image */private void sharePicture (int shareType, ShareContent shareContent) {Bitmap bmp = BitmapFactory. decodeResource (context. getResources (), response content. getPicResource (); WXImageObject imgObj = new WXImageObject (bmp); WXMediaMessage msg = new WXMediaMessage (); msg. mediaObject = imgObj; Bitmap thumbBmp = Bitmap. cr
The image upload event code looks like this:1 byte[] binary =upload. filebytes;2StringBuilder SQLSTRSB =NewStringBuilder ();3Sqlstrsb.append ("Update info set thumb=? Imgwhere id=200");4 stringMysqlconstr ="host=localhost; uid=root; pwd=123; Database=db";5Mysqlconnection Mysqlcon =Newmysqlconnection (MYSQLCONSTR);6 Mysqlcon.open ();7Mysqlcommand mysqlcom =NewMysqlcommand ();8Mysqlcom.commandtext =sqlstrsb.tostring ();9Mysqlcom.connection =Mysqlcon;TenMysqlparameter par =New
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.