Questions tagged as 'stream'

1
answer

Transform Stream into PDF to send with attachment in email

I'm making a page for sending emails, and I need to turn a specific page into pdf to be attached to the email. The page I have already been able to transform into Stream, now how can I make it into pdf and then attachar as an attachment.?...
asked by 28.05.2015 / 02:52
1
answer

Reading PDF with DefaultStreamedContent. How to close it?

I have a JSF page where I generate a PDF and need to show it on the screen. For this, I created a <p:media> It's working, but the PDF file gets stuck (it's never closed) and over time it ends up dropping Tomcat by Many file...
asked by 08.04.2015 / 16:10
1
answer

How to use Java 8 stream in an Object list []

Imagine the following scenario: A list of Object[] . Something similar to this: List<Object[]> lista = new ArrayList<>(); Object[] dados = new Object[3]; dados[0] = 1; dados[1] = 20; dados[1] = "cristiano"...
asked by 05.09.2017 / 20:47
1
answer

Limit the input stream to values of type int

#include <iostream> #include <limits> using std::cout; using std::cin; using std::endl; int getVar(int num); int getInt(int num); int main(){ int n; cout<<"Insira um inteiro. \n\n"; getInt(n); return 0 ; }...
asked by 09.01.2016 / 21:03
1
answer

How they work and what the concept of streams in PHP

I would like to know how it works and what the concept of streams is. I already used streams to get the input, I also know there are others to control the output. However, I would like to know the theory and where the idea comes from in PHP....
asked by 13.07.2018 / 03:47
2
answers

Create an object of type Stream from a string

I need to create an object of type System.IO.Stream from the contents of a string . This my string is in a Resource.resx file. I retrieve it like this: string xml = ResourcesRel.pt_BR; I need to use a component that ha...
asked by 22.02.2017 / 20:00
3
answers

Java 8 (Stream) - Summed group

Good morning. I have the following function below: private List<Object[]> calcularTotal(List<Object[]> lista, int chave, int valor){ return lista.stream() .map(l -> new Object[] {l[chave], l[valor]})...
asked by 19.02.2015 / 14:32
1
answer

map.forEach Unexpected return value

I have the following map: private static Map<ParseCreator, Parseable> map = new HashMap<>(); I run this map as follows: for (Map.Entry<ParseCreator, Parseable> entry : map.entrySet()) { ParseCreator creator = ent...
asked by 09.05.2018 / 13:52
0
answers

Stream video with Nodejs and Socket.io

I need help streaming with Nodejs and Socket.io. I am using the rtsp-ffmpeg library to perform the stream. I was able to execute it by transmitting in img format according to the specific documentation itself, but I can not send an mp4 even afte...
asked by 17.03.2017 / 17:11
2
answers

Generate text file from an application console application

I need to tailor this method of an application Windows Forms link to Console Application , that is, instead of using the object saveFileDialog.ShowDialog() I have to create the file using another method of class Stream...
asked by 10.03.2016 / 01:41