Skip to content

Added LoadFileOrURLUsingReader #4159

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krisharyan117
Copy link

Closes #4112

Summary

Release Note

Added a new function that returns io.Reader instead of the entire message called LoadFileOrURLUsingReader

Documentation

Signed-off-by: Krish Aryan <[email protected]>
@krisharyan117 krisharyan117 requested a review from a team as a code owner April 10, 2025 13:50
@krisharyan117
Copy link
Author

@ramonpetgrave64 please review this

@bobcallaway
Copy link
Member

bobcallaway commented Apr 10, 2025

This doesn't really fix the issue you've linked. it adds support for pulling from remote destinations but it still loads the entire blob into memory (because you're still passing around []byte instead of passing down the io.Reader itself).

@krisharyan117
Copy link
Author

Yes but I am facing difficulty passing io.Reader in signature, err := static.NewSignature(blobBytes, sig, opts...).

Can you give me a direction on how should I approach this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

verify-blob laods entire payload into memory
2 participants