All Questions
2,575
questions
0
votes
0
answers
48
views
Extracting large password protected 7zip files whilst streaming?
I have a requirement to unzip password protected 7zip files from AWS S3 to a container that has limited space.
The problem is I can't download the entire zip file and then attempt to extract it ...
-1
votes
1
answer
43
views
RxJava strip bytes at regular interval from a stream and then further extract messages based on length indicator of message bytes
I have a Java inputstream, that I skip 2 bytes every n bytes. Now the output of that are bytes that are clean after stripping the 2 delimiters every n bytes.
This output is a series of bytes where the ...
-2
votes
0
answers
49
views
Upload a file to Google cloud storage bucket: Camel vs gcloud CLI
I want to upload a file to a Google cloud storage bucket.
With Java/Camel:
from("file://target/upload?delete=true")
.routeId("GCP file upload route")
.log("...
0
votes
0
answers
35
views
Differentiate between client file download pause and abort from a browser in a java server
I have a Java ServerSocket on an android sharing app that shares files over the network via the HTTP protocol.
I want to tell the user who uses the ServerSocket on his phone whether the other user ...
1
vote
1
answer
105
views
File uploads get corrupted when reading a POST request body
I'm building an android app that needs to receive a file from a web application.
I'm using Java ServerSocket to deal with that.
I handled the POST request headers and all works fine but when I write ...
0
votes
1
answer
67
views
How to wait for subscriber to finish TEXT_EVENT_STREAM on Java Spring
Working with a Stream API that return Strings, I want to have a function that returns them on a single String separated by a delimeter, currently using a subscribe and appending to a List<String>...
0
votes
0
answers
217
views
How to stream large file with Spring RestClient (with custom buffer size)
Recently the SpringFramework introduced a RestClient as a replacement for the RestTemplate.
Currently I am stuck at streaming large files to a server, because I cannot control that data should only ...
-1
votes
1
answer
53
views
Using System.in to process piped in data AND to await user input
I have a program in java that I would like to be able to attend to piped in data (as in, '(echo "dor = 4"; echo "dor * 2") | program'. That said, it seems System.in only works as ...
-2
votes
1
answer
97
views
Can we skip EOF when reading input? [closed]
After I catch eof, if I try to read information from input again, I no longer get new information. Is there any way I can resume reading the data?
Scanner s = new Scanner(System.in);
while (s....
0
votes
0
answers
154
views
Download video from url in java
private void downloadVideo(String videoUrl, String destinationPath) throws IOException {
CloseableHttpClient httpClient = HttpClients.createDefault();
HttpGet httpGet = new HttpGet(...
-2
votes
1
answer
189
views
Fetching Data from DB using streams
Recently, I was asked how to retrieve data from a database without using SQL queries. They suggested using streams to accomplish this, and I'd like someone to explain how this can be done.
I initially ...
1
vote
1
answer
92
views
Helidon: GraphQL with @stream and @defer annotations
I am working on a GraphQL API using Helidon MP and looking to confirm that directives @ stream and @defer are supportable.
These annotations are documented in the GraphQL blog.
We tried the GraphQL @...
0
votes
0
answers
26
views
Cause of java.io.OptionalDataException in serversocket programming [duplicate]
I am writing a serversocket program, and i am trying to pass objects (in this case: ParticipantWorkState) into ObjectOutputStream and read it via an ObjectInputStream. The ParticipantWorkState class ...
0
votes
0
answers
137
views
Integrating Spring with AWS Binder (Kinesis)
I'm trying to implement an integration solution with Kinesis (AWS), using "Stream Binder Kinesis". I need to send a json(String) to a queue (producer). I'm based on the example https://www....
-1
votes
2
answers
116
views
Java: String vs StringWriter?
If I have an array of bytes(which could be from fairly large file), which is better for constructing a String?
new String(byteArr, UTF_8);
vs
try (final ByteArrayInputStream decompressed = new ...