Hi,
what is abp.io's equivalend or logical follower to using FileController
and ITempFileCacheManager
?
Problem to solve: Use a file as download or in <img> or <audio> html tags where bearer-token cannot be supplied. Therefore putting some data from an authenticated API into temp storage, which can be then downloaded from a temp url for a certain time span.
Or is there any ohter solution to play an audio blob via an authenticated API?
4 Answer(s)
-
0
There's a stream support for the application services. Is that what you are looking for https://docs.abp.io/en/abp/latest/Application-Services#working-with-streams ?
-
0
OK, looks promising. Does this work as the fileDto stuff worked.
Basically: If I use a HTML audio element, it does do it's own request, leaving out the bearer token. So I cannot use authenticated api entpoints for the audio src URL.
Does this help me here?
-
0
you can use Authorize attribute on the methods of your streaming AppService
-
0
This question has been automatically marked as stale because it has not had recent activity.