-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImageKit instantiation error #29
Comments
Problem is the required dependency |
Still not fixed ?? |
problem still......however, as 0x00117 say, i add the okhttp dependency, now it work well.
ImageKit imageKit = ImageKit.getInstance();
Configuration config = new Configuration(your_public_key, your_private_key, your_url_endpoint);
imageKit.setConfig(config);
byte[] bytes1 = file.getBytes();
FileCreateRequest fileCreateRequest = new FileCreateRequest(
bytes1, // required, "binary", "base64" or "file url"
"sample-image11.jpg" // required
);
Result resultt = imageKit.upload(fileCreateRequest);
System.out.println(resultt); |
@NoonieBao I recommend you not using this library in real projects. it's obvious that this repository is not maintained properly and in the future you may get dependency version conflict errors. |
Good tips, thanks! It is only being used for my personal project, and I have made a backup for unexpected conflicts. |
Hi.
I went along with documentaion and added config.properties in my resource folder and added public and private keys and url endpont there.
and here is my imagekit instantiation:
When I run the app I got this error:
What is the problem?
The text was updated successfully, but these errors were encountered: