NewFileFromURL creates a new File from the provided url by downloading the resource and load it as BytesReader.
Example
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) defer cancel() file, err := filesystem.NewFileFromURL(ctx, "https://example.com/image.png") Copy
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) defer cancel() file, err := filesystem.NewFileFromURL(ctx, "https://example.com/image.png")
Generated using TypeDoc
NewFileFromURL creates a new File from the provided url by downloading the resource and load it as BytesReader.
Example