-
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
Letter Migration to Version 13 #200
Comments
Hey @codylerum I will investigate more into this, I am seeing in the docs we currently support different types of strings. But I also see that the old Java SDK did accept File types. I am going to follow up with another team if that is still supported and update the docs if that's the case. |
My preference would be to pass though the content as a byte array or I can convert to base64 or something. But the docs seem to imply that you take
Basically I have a PDF bytes and would like to have that transferred like it does currently. File is actually an inconvenience for me as I have to write it to a temp folder on my server to pass it you and then delete it after. |
Perfect, changing a byte array to a string should be no problem on our end. |
No problem and I can easily create it to base64 or something for transfer just need to know that the API will take it. |
Beyond this issue and the legacy DateTime stuff I've been able to convert our impl using Letters, Checks and verifications without issues. |
That's great news, I am glad it's mostly been working for you! I will get back to you asap on how we can handle the File situation. |
@codylerum I have a ticket created for this, for next sprint. From what I am finding on the api team's side, we should be able to have both a method to accept a file, and a method to accept a byte array. Unless otherwise updated on here, I would expect the change to be out in the next two weeks. I will fully update this ticket with that version once it has been released. |
@BennyKitchell Sounds good. We have a working implementation on the 12.x API so there is no rush. |
@codylerum I know it's been a bit, I wanted to let you know the team is still working on getting this out the door. We appreciate your patience. Thanks! |
@BennyKitchell Just checking in on this one to see if there is an ETA Thanks! |
Assuming we can stay on 12.x for a while I'm probably just going to shelve this for now and look again in 2023 |
@codylerum Apologies for the delay on this, we ran into some issues on headcount and workload. This will be our focus for this sprint and we will get this out by end of this month. Apologies again! |
@codylerum I was able to implement the functionality of adding a file with the letter on upload, had to provide an overloaded method to pass it in. I was not able to add in the byte array functionality yet. But I am hoping this will help your team be able to utilize version 13 until then. I don't have a definite date on the byte array functionality, but I will be working on it where I can find spare time. |
The version is 13.4.0 and is released. |
@BennyKitchell thanks. We will probably hold off until byte array is added. Most of our content is generated dynamically so we don't really want to have to write it out to temp file on disk just to add to the api and then delete after. This is what we do today.... |
@codylerum Completely understandable, I will try to get to it as fast as possible and update this issue when that is done. Thanks! |
I'm trying to use the 13.4.0 version and am unfortunately still on Java 8 (openjdk). The necessary upgrade from 13.0.0 to 13.4.0 (to pick up the fix for the file upload issue) caused a runtime exception due to binary incompatibility:
Would be great if Lob could publish targeting Java 8 as well since I believe it is still in widespread use. |
Currently in 12 we have the option of passing in a java.io.File which is then handled by the library to read the content and include it with the post.
With 13 it appears we just have a String value. How do we do this with parity in version 13? I would be fine sending in a byte[] or an inputstream as well.
The text was updated successfully, but these errors were encountered: