public class WxstoreUtils extends Object
| 构造器和说明 |
|---|
WxstoreUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
decode(String str) |
static String |
encode(byte[] bstr) |
static net.sf.json.JSONObject |
httpRequest(String requestUrl,
String requestMethod,
String outputStr) |
static net.sf.json.JSONObject |
httpRequest2(String requestUrl,
String requestMethod,
byte[] outputStr) |
static void |
main(String[] args) |
static byte[] |
readInputStream(InputStream inStream) |
static void |
saveHttpImage(String requestUrl,
String requestMethod,
String outputStr,
File target) |
static net.sf.json.JSONObject |
uploadMediaFile(String requestUrl,
File file,
String content_type)
上传多媒体文件到微信公众平台
|
static net.sf.json.JSONObject |
uploadMediaFileNews(String requestUrl,
File file,
String content_type)
上传多媒体文件到微信公众平台 图文素材上传使用
|
public static net.sf.json.JSONObject httpRequest(String requestUrl, String requestMethod, String outputStr)
public static net.sf.json.JSONObject httpRequest2(String requestUrl, String requestMethod, byte[] outputStr)
public static void saveHttpImage(String requestUrl, String requestMethod, String outputStr, File target)
public static String encode(byte[] bstr)
public static byte[] decode(String str)
public static byte[] readInputStream(InputStream inStream) throws Exception
Exceptionpublic static net.sf.json.JSONObject uploadMediaFile(String requestUrl, File file, String content_type)
requestUrl - file - 文件content_type - 文件类型Exceptionpublic static net.sf.json.JSONObject uploadMediaFileNews(String requestUrl, File file, String content_type)
requestUrl - file - 文件content_type - 文件类型Exceptionpublic static void main(String[] args)
Copyright © 2022. All rights reserved.